package com.transport.service;

import java.util.ArrayList;
import java.util.List;

import com.transport.dao.CarsDao;
import com.transport.model.Cars;

public class CarsService {
	private CarsDao carsDao;

	public CarsDao getCarsDao() {
		return carsDao;
	}

	public void setCarsDao(CarsDao carsDao) {
		this.carsDao = carsDao;
	}

	public List<String> bindSelect(Cars cars) {
		List<String> list = new ArrayList<String>();
		List<Cars> carList =carsDao.bindSelect(cars);
		for (Cars carsno : carList) {
			list.add(carsno.getCarno());
		}
		return list;
	}



}
